#ifndef __JPEG_HEADER__
#define __JPEG_HEADER__
#include <jpeglib.h>
typedef struct{
   int width,height;
   int num_components;
   int color_space;

}jpeg_header;


uint8_t *read_jpeg_file(char *filename);

void write_jpeg_file(char *filename, int quality,uint8_t *plane);

#endif //__JPEG_HEADER__
